package com.jbm.jbmsupplier.util;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by lyh on 2017-04-11.
 */

public class AlipaylogEntity  extends com.jbm.jbmsupplier.util.ICtrl implements Serializable {
    private int aliId;
    private Timestamp notifyTime;
    private String tradeNo;
    private String outTradeNo;
    private String buyerLogonId;

    private String subject;
    private String body;
    private Timestamp gmtCreate;
    private Timestamp gmtPayment;
    private Integer balId;
    private double totalAmount;
    private double receiptAmount;
    private double buyerPayAmount;


    public int getAliId() {
        return aliId;
    }

    public void setAliId(int aliId) {
        this.aliId = aliId;
    }

    public Timestamp getNotifyTime() {
        return notifyTime;
    }

    public void setNotifyTime(Timestamp notifyTime) {
        this.notifyTime = notifyTime;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }


    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }


    public String getBuyerLogonId() {
        return buyerLogonId;
    }

    public void setBuyerLogonId(String buyerLogonId) {
        this.buyerLogonId = buyerLogonId;
    }


    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }


    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }


    public Timestamp getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Timestamp gmtCreate) {
        this.gmtCreate = gmtCreate;
    }


    public Timestamp getGmtPayment() {
        return gmtPayment;
    }

    public void setGmtPayment(Timestamp gmtPayment) {
        this.gmtPayment = gmtPayment;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        AlipaylogEntity that = (AlipaylogEntity) o;

        if (aliId != that.aliId) return false;
        if (body != null ? !body.equals(that.body) : that.body != null) return false;
        if (buyerLogonId != null ? !buyerLogonId.equals(that.buyerLogonId) : that.buyerLogonId != null) return false;
        if (buyerPayAmount != 0 ? !(buyerPayAmount==that.buyerPayAmount) : that.buyerPayAmount != 0)
            return false;
        if (gmtCreate != null ? !gmtCreate.equals(that.gmtCreate) : that.gmtCreate != null) return false;
        if (gmtPayment != null ? !gmtPayment.equals(that.gmtPayment) : that.gmtPayment != null) return false;
        if (notifyTime != null ? !notifyTime.equals(that.notifyTime) : that.notifyTime != null) return false;
        if (outTradeNo != null ? !outTradeNo.equals(that.outTradeNo) : that.outTradeNo != null) return false;
        if (receiptAmount != 0 ? !(receiptAmount==that.receiptAmount) : that.receiptAmount != 0)
            return false;
        if (subject != null ? !subject.equals(that.subject) : that.subject != null) return false;
        if (totalAmount != 0 ? !(totalAmount==that.totalAmount) : that.totalAmount != 0) return false;
        if (tradeNo != null ? !tradeNo.equals(that.tradeNo) : that.tradeNo != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = aliId;
        result = 31 * result + (notifyTime != null ? notifyTime.hashCode() : 0);
        result = 31 * result + (tradeNo != null ? tradeNo.hashCode() : 0);
        result = 31 * result + (outTradeNo != null ? outTradeNo.hashCode() : 0);
        result = 31 * result + (buyerLogonId != null ? buyerLogonId.hashCode() : 0);

        result = 31 * result + (subject != null ? subject.hashCode() : 0);
        result = 31 * result + (body != null ? body.hashCode() : 0);
        result = 31 * result + (gmtCreate != null ? gmtCreate.hashCode() : 0);
        result = 31 * result + (gmtPayment != null ? gmtPayment.hashCode() : 0);
        return result;
    }


    public Integer getBalId() {
        return balId;
    }

    public void setBalId(Integer balId) {
        this.balId = balId;
    }

    public double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(double totalAmount) {
        this.totalAmount = totalAmount;
    }


    public double getReceiptAmount() {
        return receiptAmount;
    }

    public void setReceiptAmount(double receiptAmount) {
        this.receiptAmount = receiptAmount;
    }

    public double getBuyerPayAmount() {
        return buyerPayAmount;
    }

    public void setBuyerPayAmount(double buyerPayAmount) {
        this.buyerPayAmount = buyerPayAmount;
    }
}
